package bookSystem.user;

import bookSystem.operations.*;

import java.util.Scanner;

public class AdminUser extends User{
    //管理员
    public AdminUser(String name){
        super(name);

        this.ioPerations = new IOperation[]{
                new FindOperatiion(),
                new AddOperation(),
                new DelOperation(),
                new ShowOperation(),
                new ExitOperation()
        };
    }
    public int menu(){
        Scanner scanner = new Scanner(System.in);
            System.out.println("*************************************");
            System.out.println("欢迎来到" + name + "图书馆");
            System.out.println("1、查找图书");
            System.out.println("2、添加图书");
            System.out.println("3、删除图书");
            System.out.println("4、显示图书");
            System.out.println("5、退出系统");
            System.out.println("*************************************");
            return scanner.nextInt();
    }
}
